@import "Reset";

.main {
  width: 1200px;
  margin: 0 auto;
}

$cloor: #333;
$fc: #fff;
@mixin clearfix {
  &:after {
    clear: both;
    content: '.';
    display: block;
    height: 0;
    line-height: 0;
    overflow: hidden;
  }
  *height: 1%;
}

body, html {
  width: 100%;
  height: 100%;
}

.topbar {
  width: 100%;
  background: $cloor;
  font-size: 12px;
  color: $fc;

  .area-center {
    @include clearfix;

    .bar-left {
      float: left;

      ul {
        @include clearfix;

        li {
          float: left;
          height: 32px;
          line-height: 32px;
          margin-left: 10px;
          a{
            color: white;
            text-decoration: none;
          }
        }
      }
    }

    .bar-right {
      float: right;

      ul {
        @include clearfix;

        li {
          float: left;
          height: 40px;
          line-height: 32px;
          margin-left: 10px;
        }

        .self {
          position: relative;

          ul {
            position: absolute;
            top: 40px;
            display: none;
          }

          &:hover {
            background: white;
            color: #2884c7;

            ul {
              display: block;
              background: #ffffff;
              width: 60px;
            }
          }
        }

        .phone {
          position: relative;

          div {
            position: absolute;
            top: 40px;
            display: none;
            width: 120px;
            height: 80px;
            background: #ffffff;

            img {
              display: block;

              margin: 0 auto;
            }
          }

          &:hover {
            background: white;
            color: #2884c7;

            div {
              display: block;
            }
          }


        }

      }
    }
  }

}

.main-head {
  @include clearfix;

  .area-center {
    @include clearfix;

    .mall-logo {
      float: left;

    }

    .main-search {
      float: left;
      margin-top: 40px;
      @include clearfix;

      input {
        display: block;
        float: left;
        width: 450px;
        border: 2px solid #2884c7;
        height: 36px;
        line-height: 36px;
        padding: 0 0 0 12px;
        margin: 0;
        outline: 0;
        font-size: 14px;
      }

      button {
        display: block;
        float: left;
        width: 134px;
        height: 40px;
        background: #2884c7;
        font-size: 18px;
        color: $fc;
        text-align: center;
        border: 0;
        outline: 0;
        cursor: pointer;
      }
    }

    .top-cart {
      margin-left: 40px;
      margin-top: 38px;
      float: left;
    }
  }
}

section {
  background: #f2f2f2;
  padding-bottom: 20px;
  overflow: hidden;
  @include clearfix;

  .rouqi {
    position: relative;
    //overflow: hidden;
    .slideshow {
      width: 100%;
      height: 420px;
      margin: 0 auto;
      @include clearfix;

      .carousel {
        height: 420px;
        width: (1520px *5);
        top: 0;
        left: 0;
        position: absolute;
        @include clearfix;

        li {
          float: left;
          width: 1200px;
          margin-right: 400px;

          img {
            display: block;
            width: 1200px;
            height: 420px;
            margin: 0 auto;
          }
        }
      }

      .content {
        @include clearfix;
        position: absolute;
        width: 100%;
        z-index: 100;

        .menu {
          ul {
            li {
              background: #333;
              height: (420px/7);
              width: 196px;
              color: $fc;
              line-height: (420px/7);
            }
          }
        }

        .caidan0 {
          position: absolute;
          top: 0;
          left: 197px;
          width: 1200px - 198;
          height: 420px;
          background: #ffffff;
          z-index: 110;
          display: none;

          .list1 {
            float: left;

            li {
              margin-left: 20px;
              height: 60px;
              width: 80px;
              text-align: center;
              line-height: 60px;
              font-weight: bold;
            }
          }

          .list2 {
            float: left;

            li {
              margin-left: 20px;
              height: 60px;
              width: 80px;
              text-align: center;
              line-height: 60px;
              font-weight: bold;
            }
          }

          .list3 {
            float: left;

            li {
              margin-left: 20px;
              height: 60px;
              width: 80px;
              text-align: center;
              line-height: 60px;
              font-weight: bold;
            }
          }

          .list4 {
            img {
              display: block;
              margin-left: 20px;
            }

          }
        }

        .caidan1 {
          position: absolute;
          top: 0;
          left: 197px;
          width: 1200px - 198;
          height: 420px;
          background: #ffffff;
          z-index: 110;
          display: none;

          .list1 {
            float: left;

            li {
              margin-left: 20px;
              height: 60px;
              width: 80px;
              text-align: center;
              line-height: 60px;
              font-weight: bold;
            }
          }

          .list2 {
            float: left;

            li {
              margin-left: 20px;
              height: 60px;
              width: 80px;
              text-align: center;
              line-height: 60px;
              font-weight: bold;
            }
          }

          .list3 {
            float: left;

            li {
              margin-left: 20px;
              height: 60px;
              width: 80px;
              text-align: center;
              line-height: 60px;
              font-weight: bold;
            }
          }

          .list4 {
            img {
              display: block;
              margin-left: 20px;
            }

          }
        }

        .user {
          @include clearfix;
          position: absolute;
          top: 1px;
          left: 950px;
          width: 238px;
          z-index: 100;
          background: $fc;

          .longin-warp {
            border-bottom: 1px solid #acabab;
            margin-bottom: 10px;

            .user-headimg {
              border-radius: 50%;

              img {
                display: block;
                width: 62px;
                margin: 0 auto;
              }
            }

            .user-title {
              margin-top: 5px;
              text-align: center;
              font-size: 12px;
            }

            .user-name {
              margin-top: 5px;
              text-align: center;
              height: 20px;
              line-height: 20px;
              font-size: 12px;

              .level-icon {
                display: inline-block;
                width: 16px;
                height: 16px;
                vertical-align: -4px;
                margin: 0 8px 0 0;

                img {
                  display: block;
                  width: 100%;
                  height: 100%;
                }
              }

              a {
                color: #2884c7;
                text-decoration: underline;
              }
            }

            .user-message {
              @include clearfix;
              margin-top: 5px;

              li {
                float: left;
                width: 70px;
                height: 34px;
                margin-left: 5px;

                .message-number {
                  text-align: center;
                  font-size: 12px;
                  color: #ed1c24;
                  margin-bottom: 5px;
                }

                .message-name {
                  text-align: center;
                  font-size: 12px;
                  margin-bottom: 5px;
                }
              }
            }

          }

          .news-headr {
            height: 280px;

            .news {
              float: left;
              width: 70px;
              text-align: center;
            }

            .more {
              float: right;
              width: 50px;
            }
          }
        }
      }
    }
  }

  .nav {
    margin-top: 20px;
    display: flex;
    width: 1200px;
    height: 140px;
    justify-content: space-between;
    //margin-top: 10px;
    .one {
      img {
        height: 140px;
        width: 196px;
      }
    }

    div {
      img {
        width: 238px;
        height: 140px;
      }
    }
  }

  .goodslist-1 {
    @include clearfix;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .goods-title {
      width: 100%;
      height: 20px;

      margin-bottom: 10px;

      span {
        font-weight: bold;
      }

      .last {
        font-weight: normal;
        margin-left: 10px;
      }
    }

    .goodsl {
      flex: 19%;

      img {
        height: 590px;
        width: 236px;
      }
    }

    .goodsr {
      flex: 80%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .goods {
        height: 290px;
        flex: 23%;
        margin-left: 10px;
        margin-bottom: 10px;
        justify-content: space-between;
        background: #ffffff;
        position: relative;
        overflow: hidden;
        //position: absolute;
        //overflow: hidden;
        .biaoti {
          background: #ed1c24;
          color: #ffffff;
          width: 72px;
          height: 20px;
          margin-top: 5px;
          margin: 0 auto;
          text-align: center;
        }

        .biaoti0 {
          background: #3ece17;
          color: #ffffff;
          width: 72px;
          height: 20px;
          margin-top: 5px;
          margin: 0 auto;
          text-align: center;
        }

        img {
          display: block;
          width: 160px;
          height: 160px;
          margin: 0 auto;
        }

        .title {
          font-size: 14px;
          font-weight: bold;
          text-align: center;
        }

        .introduce {
          margin-top: 3px;
          font-size: 12px;
          color: #999;
          text-align: center;
        }

        .price {
          margin-top: 3px;
          text-align: center;

          span {
            font-weight: bold;
            font-size: 14px;
            color: #ed1c24;
            text-align: center;
          }

          del {
            font-size: 12px;
            color: #999999;
            text-align: center;
          }
        }
        .buy{
          background: #ed1c24;
          color: #ffffff;
          font-weight: bold;
          font-size: 14px;
          position: absolute;
          border-radius: 5px;
          left: 78px;
          //top: 213px;
          top: 300px;
          a{
            display: block;
            color: #ffffff;
            width:76px;
            height: 24px;
            line-height: 24px;
            text-align: center;
            text-decoration: none;
          }
        }
      }
    }
  }

  .le-foot {
    ul {
      @include clearfix;

      li {
        float: left;
        margin-left: 100px;
      }
    }
  }
}

footer {
  background: #151515;
}